﻿using AutoMapper;
using DFGK_WMS.Context;
using DFGK_WMS.IRepository;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Repository
{
    public class AuxiliaryUnitRepository : BaseRepository<TAuxiliaryUnit>, IAuxiliaryUnitRepository
    {
        public AuxiliaryUnitRepository(DFGK_DB context, IMapper mapper) : base(context, mapper)
        {
        }

        public bool AddAuxiliaryUnitList(List<TAuxiliaryUnit> alist)
        {           
            Context.TAuxiliaryUnits.AddRange(alist);
            return Context.SaveChanges()>0;
        }
    }
}
